package com.ruoyi.scrb.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.scrb.mapper.ScrbSbnybMapper;
import com.ruoyi.scrb.domain.ScrbSbnyb;
import com.ruoyi.scrb.service.IScrbSbnybService;

/**
 * 设备能源部生产日报录入Service业务层处理
 * 
 * @author key
 * @date 2022-09-26
 */
@Service
public class ScrbSbnybServiceImpl implements IScrbSbnybService 
{
    @Autowired
    private ScrbSbnybMapper scrbSbnybMapper;

    /**
     * 查询设备能源部生产日报录入
     * 
     * @param cDate 设备能源部生产日报录入主键
     * @return 设备能源部生产日报录入
     */
    @Override
    public ScrbSbnyb selectScrbSbnybByCDate(String cDate)
    {
        return scrbSbnybMapper.selectScrbSbnybByCDate(cDate);
    }

    /**
     * 查询设备能源部生产日报录入列表
     * 
     * @param scrbSbnyb 设备能源部生产日报录入
     * @return 设备能源部生产日报录入
     */
    @Override
    public List<ScrbSbnyb> selectScrbSbnybList(ScrbSbnyb scrbSbnyb)
    {
        return scrbSbnybMapper.selectScrbSbnybList(scrbSbnyb);
    }

    /**
     * 新增设备能源部生产日报录入
     * 
     * @param scrbSbnyb 设备能源部生产日报录入
     * @return 结果
     */
    @Override
    public int insertScrbSbnyb(ScrbSbnyb scrbSbnyb)
    {
        return scrbSbnybMapper.insertScrbSbnyb(scrbSbnyb);
    }

    /**
     * 修改设备能源部生产日报录入
     * 
     * @param scrbSbnyb 设备能源部生产日报录入
     * @return 结果
     */
    @Override
    public int updateScrbSbnyb(ScrbSbnyb scrbSbnyb)
    {
        return scrbSbnybMapper.updateScrbSbnyb(scrbSbnyb);
    }

    /**
     * 批量删除设备能源部生产日报录入
     * 
     * @param cDates 需要删除的设备能源部生产日报录入主键
     * @return 结果
     */
    @Override
    public int deleteScrbSbnybByCDates(String[] cDates)
    {
        return scrbSbnybMapper.deleteScrbSbnybByCDates(cDates);
    }

    /**
     * 删除设备能源部生产日报录入信息
     * 
     * @param cDate 设备能源部生产日报录入主键
     * @return 结果
     */
    @Override
    public int deleteScrbSbnybByCDate(String cDate)
    {
        return scrbSbnybMapper.deleteScrbSbnybByCDate(cDate);
    }
}
